home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / test.zip / EXAMPLE.BAT < prev    next >
DOS Batch File  |  1994-04-14  |  547b  |  27 lines

  1. @echo off
  2.  
  3. REM  Example batch program using test utility.
  4. REM  Created by J. Mathews, 27-Apr-94.
  5.  
  6. md test.dir
  7. type nul > zero
  8.  
  9. echo executable files:
  10. for %%f in (*.* %COMSPEC% nul) do call calltest -x %f
  11.  
  12. echo.
  13. echo files modified within last year:
  14. for %%f in (*.* %COMSPEC% nul) do call calltest -m365 %f
  15.  
  16. echo.
  17. echo directories:
  18. for %%f in (*.* test.dir . .. nul) do call calltest -d %f
  19.  
  20. echo.
  21. echo zero-length files:
  22. for %%f in (*.* nul) do call calltest -z %f
  23.  
  24. REM  Clean up tmp files/dirs
  25. rd test.dir
  26. del zero > nul
  27.